package FourHomeworkDesign.Composite;

/**
 * @author 北巷_东坡
 * @date 2022/11/13 10:07
 * @computer 10741
 */
public class Client206 {
    public static void main(String[] args) {
        Institution206 beijing,hunan,changsha,xiangtan;
        Unit206 jiaowu,xingzheng,hunan1,changsha1,xiangtan1;

        jiaowu = new Office206("教务办公室");
        xingzheng = new Office206("行政办公室");
        hunan1 = new Office206("湖南分校");
        changsha1 = new Office206("长沙教学点");
        xiangtan1 = new Office206("湘潭教学点");

        beijing = new Institution206("北京总部");
        hunan = new Institution206("湖南分校");
        changsha = new Institution206("长沙教学点");
        xiangtan = new Institution206("湘潭教学点");
//      北京总部
        beijing.add(jiaowu);
        beijing.add(xingzheng);
        beijing.add(hunan1);
        beijing.add(hunan);
//      湖南分校
        hunan.add(jiaowu);
        hunan.add(xingzheng);
        hunan.add(changsha1);
        hunan.add(xiangtan1);
        hunan.add(changsha);
        hunan.add(xiangtan);
//      长沙教学点
        changsha.add(jiaowu);
        changsha.add(xingzheng);
//      湘潭教学点
        xiangtan.add(jiaowu);
        xiangtan.add(xingzheng);

        beijing.handleArchives();

    }
}
